puts "Error Report Packager"
puts "..."
game_vers="pre alpha <0.0005"
pkg_vers="pre release 0.91"
f=File.new "REPORT","w"
f.write Time.new.to_s+"\n\n"
f.write "Env\n{\nRuby Version=#{VERSION}\nPlatform=#{RUBY_PLATFORM}\nProc=#{$$}\n}"
f.write "\n\n"
f.write "Pkg\n{\nPkger Version=#{pkg_vers}\nExpected Game=#{game_vers}\nTime=#{Time.new.to_s}\n}"
f.write "\n\n"
f.write "Game\n{\n}"
f.close

if File.exists? "report.dat"
  File.delete "report.dat"
end

system "../utilities/7za a -y -r report.dat ./"

if File.exists? "REPORT"
  File.delete "REPORT"
end

puts
puts "Report saved as report.dat"
puts
puts "Press ENTER to continue..."
gets